package com.wzz.service.impl;

import com.wzz.mapper.PersonMapper;
import com.wzz.pojo.Person;
import com.wzz.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonServiceImpl implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public List<Person> getAllPerson() {
        return personMapper.getAllPerson();
    }

    @Override
    public int addPerson(Person person) {
        return personMapper.addPerson(person);
    }

    @Override
    public int delPerson(int id) {
        return personMapper.delPerson(id);
    }
}
